package nc.bs.arap.util;

import java.util.List;
import java.util.Map;

import nc.bs.pfxx.ITranslateContext;

public class NCTransContext implements ITranslateContext{

	private String pk_group;
	
	private String orgPk;
	
	private String exsystemPk;
	
	private int translateRule;
	
	private Map<String, Object> userdata;
	
	private List<Object> translatorParams;

	public String getPk_group() {
		return pk_group;
	}

	public void setPk_group(String pk_group) {
		this.pk_group = pk_group;
	}

	public String getOrgPk() {
		return orgPk;
	}

	public void setOrgPk(String orgPk) {
		this.orgPk = orgPk;
	}

	public String getExsystemPk() {
		return exsystemPk;
	}

	public void setExsystemPk(String exsystemPk) {
		this.exsystemPk = exsystemPk;
	}

	public int getTranslateRule() {
		return translateRule;
	}

	public void setTranslateRule(int translateRule) {
		this.translateRule = translateRule;
	}

	public Map<String, Object> getUserdata() {
		return userdata;
	}

	public void setUserdata(Map<String, Object> userdata) {
		this.userdata = userdata;
	}

	public List<Object> getTranslatorParams() {
		return translatorParams;
	}

	public void setTranslatorParams(List<Object> translatorParams) {
		this.translatorParams = translatorParams;
	}

	@Override
	public String getCachedBasdocValue(String pk_sender, String pk_org,
			String basdocType, String srcValue) {
		return null;
	}

	@Override
	public void putBasdocValue(String pk_sender, String pk_org,
			String basdocType, String srcValue, String fieldValue) {
		
	}

	@Override
	public Object getUserdata(String key) {
		
		if(this.userdata == null) return null;
		else return this.userdata.get(key);
		
	}

}
